#!/usr/bin/env python
# coding=utf8


import sys

sys.path.append('..')
sys.path.append('../../')
from i_util.pybeanstalk import PyBeanstalk
import json
import traceback

from thrift import Thrift
from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from thrift.transport.TTransport import TMemoryBuffer
from thrift.protocol.TBinaryProtocol import TBinaryProtocol
from bdp.i_crawler.i_extractor.ttypes import BaseInfo, CrawlInfo, ExtractInfo, PageParseInfo
import time
from pymongo import MongoClient
import hashlib


def main():

    begin_time = time.time()

    extract_data = {
        "code": "sz002432",
        "company_name": "医疗",
        "fund_table_info": [
            {
                "fund_info": [
                    {
                        "circulation_ratio": "0.41%",
                        "fund_code": "001072",
                        "link": "购买",
                        "name_fund": "华安智能装备主题股票",
                        "net_worth_ratio": "1.61%",
                        "number_shares": "1,514,838",
                        "position_value": "26,024,916",
                        "ranking": "1",
                        "total_equity_ratio": "0.35%"
                    },
                    {
                        "circulation_ratio": "0.04%",
                        "fund_code": "050016",
                        "link": "购买",
                        "name_fund": "博时宏观回报债券A/B",
                        "net_worth_ratio": "0.49%",
                        "number_shares": "155,900",
                        "position_value": "2,678,362",
                        "ranking": "2",
                        "total_equity_ratio": "0.04%"
                    },
                    {
                        "circulation_ratio": "",
                        "fund_code": "点击查看更多数据>>",
                        "link": "",
                        "name_fund": "",
                        "net_worth_ratio": "",
                        "number_shares": "",
                        "position_value": "",
                        "ranking": "",
                        "total_equity_ratio": ""
                    }
                ]
            },
            {
                "fund_info": [
                    {
                        "circulation_ratio": "0.47%",
                        "fund_code": "160219",
                        "link": "购买",
                        "name_fund": "国泰国证医药卫生行业指数分级",
                        "net_worth_ratio": "0.48%",
                        "number_shares": "1,753,966",
                        "position_value": "31,816,943",
                        "ranking": "1",
                        "total_equity_ratio": "0.41%"
                    },
                    {
                        "circulation_ratio": "0.17%",
                        "fund_code": "162412",
                        "link": "购买",
                        "name_fund": "华宝兴业中证医疗指数分级",
                        "net_worth_ratio": "1.46%",
                        "number_shares": "616,788",
                        "position_value": "11,188,534",
                        "ranking": "2",
                        "total_equity_ratio": "0.14%"
                    },
                    {
                        "circulation_ratio": "0.12%",
                        "fund_code": "001892",
                        "link": "购买",
                        "name_fund": "长盛新兴成长混合",
                        "net_worth_ratio": "0.68%",
                        "number_shares": "452,374",
                        "position_value": "8,206,064",
                        "ranking": "3",
                        "total_equity_ratio": "0.10%"
                    },
                    {
                        "circulation_ratio": "0.04%",
                        "fund_code": "002085",
                        "link": "购买",
                        "name_fund": "长盛互联网+混合",
                        "net_worth_ratio": "0.83%",
                        "number_shares": "146,300",
                        "position_value": "2,653,882",
                        "ranking": "4",
                        "total_equity_ratio": "0.03%"
                    },
                    {
                        "circulation_ratio": "0.04%",
                        "fund_code": "163109",
                        "link": "购买",
                        "name_fund": "申万菱信深证成指分级",
                        "net_worth_ratio": "0.08%",
                        "number_shares": "132,611",
                        "position_value": "2,405,563",
                        "ranking": "5",
                        "total_equity_ratio": "0.03%"
                    },
                    {
                        "circulation_ratio": "0.03%",
                        "fund_code": "159938",
                        "link": "购买",
                        "name_fund": "广发中证全指医药卫生ETF",
                        "net_worth_ratio": "0.35%",
                        "number_shares": "127,313",
                        "position_value": "2,309,457",
                        "ranking": "6",
                        "total_equity_ratio": "0.03%"
                    },
                    {
                        "circulation_ratio": "0.03%",
                        "fund_code": "502056",
                        "link": "购买",
                        "name_fund": "广发医疗指数分级",
                        "net_worth_ratio": "1.77%",
                        "number_shares": "95,464",
                        "position_value": "1,731,716",
                        "ranking": "7",
                        "total_equity_ratio": "0.02%"
                    },
                    {
                        "circulation_ratio": "0.02%",
                        "fund_code": "399011",
                        "link": "购买",
                        "name_fund": "中海医疗保健主题股票",
                        "net_worth_ratio": "1.80%",
                        "number_shares": "65,800",
                        "position_value": "1,193,612",
                        "ranking": "8",
                        "total_equity_ratio": "0.02%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "159907",
                        "link": "购买",
                        "name_fund": "广发中小板300ETF",
                        "net_worth_ratio": "0.16%",
                        "number_shares": "27,500",
                        "position_value": "498,850",
                        "ranking": "9",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "159943",
                        "link": "购买",
                        "name_fund": "大成深证成份ETF",
                        "net_worth_ratio": "0.07%",
                        "number_shares": "23,200",
                        "position_value": "420,848",
                        "ranking": "10",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "159903",
                        "link": "购买",
                        "name_fund": "南方深证成份ETF",
                        "net_worth_ratio": "0.07%",
                        "number_shares": "22,300",
                        "position_value": "404,522",
                        "ranking": "11",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "159918",
                        "link": "购买",
                        "name_fund": "嘉实中创400ETF",
                        "net_worth_ratio": "0.17%",
                        "number_shares": "16,288",
                        "position_value": "295,464",
                        "ranking": "12",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "161612",
                        "link": "购买",
                        "name_fund": "融通深证成份指数",
                        "net_worth_ratio": "0.07%",
                        "number_shares": "6,302",
                        "position_value": "114,318",
                        "ranking": "13",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "162413",
                        "link": "购买",
                        "name_fund": "华宝兴业中证1000指数分级",
                        "net_worth_ratio": "0.08%",
                        "number_shares": "5,500",
                        "position_value": "99,770",
                        "ranking": "14",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "001180",
                        "link": "购买",
                        "name_fund": "广发医药卫生联接A",
                        "net_worth_ratio": "0.01%",
                        "number_shares": "3,100",
                        "position_value": "56,234",
                        "ranking": "15",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "162010",
                        "link": "购买",
                        "name_fund": "长城久兆中小板300指数分级",
                        "net_worth_ratio": "0.14%",
                        "number_shares": "2,528",
                        "position_value": "45,857",
                        "ranking": "16",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "162510",
                        "link": "购买",
                        "name_fund": "国联安双力中小板综指(LOF)",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "2,191",
                        "position_value": "39,744",
                        "ranking": "17",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "070030",
                        "link": "购买",
                        "name_fund": "嘉实中创400ETF联接",
                        "net_worth_ratio": "0.01%",
                        "number_shares": "500",
                        "position_value": "9,070",
                        "ranking": "18",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "202017",
                        "link": "购买",
                        "name_fund": "南方深证成份ETF联接",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "200",
                        "position_value": "3,628",
                        "ranking": "19",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "000826",
                        "link": "购买",
                        "name_fund": "广发百发100指数A",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "76",
                        "position_value": "1,378",
                        "ranking": "20",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "001734",
                        "link": "购买",
                        "name_fund": "广发百发大数据成长混合A",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "75",
                        "position_value": "1,360",
                        "ranking": "21",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "320003",
                        "link": "购买",
                        "name_fund": "诺安先锋混合",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "0",
                        "position_value": "0",
                        "ranking": "22",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "501015",
                        "link": "购买",
                        "name_fund": "财通多策略升级混合",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "0",
                        "position_value": "0",
                        "ranking": "23",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "320001",
                        "link": "购买",
                        "name_fund": "诺安平衡混合",
                        "net_worth_ratio": "0.00%",
                        "number_shares": "0",
                        "position_value": "0",
                        "ranking": "24",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "",
                        "fund_code": "点击查看更多数据>>",
                        "link": "",
                        "name_fund": "",
                        "net_worth_ratio": "",
                        "number_shares": "",
                        "position_value": "",
                        "ranking": "",
                        "total_equity_ratio": ""
                    }
                ]
            },
            {
                "fund_info": [
                    {
                        "circulation_ratio": "0.48%",
                        "fund_code": "160219",
                        "link": "购买",
                        "name_fund": "国泰国证医药卫生行业指数分级",
                        "net_worth_ratio": "0.49%",
                        "number_shares": "1,773,366",
                        "position_value": "32,966,873",
                        "ranking": "1",
                        "total_equity_ratio": "0.48%"
                    },
                    {
                        "circulation_ratio": "0.17%",
                        "fund_code": "162412",
                        "link": "购买",
                        "name_fund": "华宝兴业中证医疗指数分级",
                        "net_worth_ratio": "1.56%",
                        "number_shares": "642,488",
                        "position_value": "11,943,851",
                        "ranking": "2",
                        "total_equity_ratio": "0.17%"
                    },
                    {
                        "circulation_ratio": "0.16%",
                        "fund_code": "000826",
                        "link": "购买",
                        "name_fund": "广发百发100指数A",
                        "net_worth_ratio": "0.95%",
                        "number_shares": "609,176",
                        "position_value": "11,324,581",
                        "ranking": "3",
                        "total_equity_ratio": "0.16%"
                    },
                    {
                        "circulation_ratio": "",
                        "fund_code": "点击查看更多数据>>",
                        "link": "",
                        "name_fund": "",
                        "net_worth_ratio": "",
                        "number_shares": "",
                        "position_value": "",
                        "ranking": "",
                        "total_equity_ratio": ""
                    }
                ]
            },
            {
                "fund_info": [
                    {
                        "circulation_ratio": "0.46%",
                        "fund_code": "160219",
                        "link": "购买",
                        "name_fund": "国泰国证医药卫生行业指数分级",
                        "net_worth_ratio": "0.45%",
                        "number_shares": "1,711,285",
                        "position_value": "42,268,739",
                        "ranking": "1",
                        "total_equity_ratio": "0.46%"
                    },
                    {
                        "circulation_ratio": "0.28%",
                        "fund_code": "162412",
                        "link": "购买",
                        "name_fund": "华宝兴业中证医疗指数分级",
                        "net_worth_ratio": "1.67%",
                        "number_shares": "1,045,488",
                        "position_value": "25,823,553",
                        "ranking": "2",
                        "total_equity_ratio": "0.28%"
                    },
                    {
                        "circulation_ratio": "0.16%",
                        "fund_code": "000826",
                        "link": "购买",
                        "name_fund": "广发百发100指数A",
                        "net_worth_ratio": "0.86%",
                        "number_shares": "583,876",
                        "position_value": "14,421,737",
                        "ranking": "3",
                        "total_equity_ratio": "0.16%"
                    },
                    {
                        "circulation_ratio": "0.07%",
                        "fund_code": "163118",
                        "link": "购买",
                        "name_fund": "申万菱信中证申万医药生物指数分级",
                        "net_worth_ratio": "0.41%",
                        "number_shares": "249,997",
                        "position_value": "6,174,925",
                        "ranking": "4",
                        "total_equity_ratio": "0.07%"
                    },
                    {
                        "circulation_ratio": "0.04%",
                        "fund_code": "502056",
                        "link": "购买",
                        "name_fund": "广发医疗指数分级",
                        "net_worth_ratio": "1.76%",
                        "number_shares": "145,800",
                        "position_value": "3,601,260",
                        "ranking": "5",
                        "total_equity_ratio": "0.04%"
                    },
                    {
                        "circulation_ratio": "0.03%",
                        "fund_code": "159938",
                        "link": "购买",
                        "name_fund": "广发中证全指医药卫生ETF",
                        "net_worth_ratio": "0.37%",
                        "number_shares": "116,413",
                        "position_value": "2,875,401",
                        "ranking": "6",
                        "total_equity_ratio": "0.03%"
                    },
                    {
                        "circulation_ratio": "0.03%",
                        "fund_code": "000059",
                        "link": "购买",
                        "name_fund": "国联安中证医药100指数",
                        "net_worth_ratio": "0.76%",
                        "number_shares": "100,169",
                        "position_value": "2,474,174",
                        "ranking": "7",
                        "total_equity_ratio": "0.03%"
                    },
                    {
                        "circulation_ratio": "0.03%",
                        "fund_code": "673030",
                        "link": "购买",
                        "name_fund": "西部利得多策略优选混合",
                        "net_worth_ratio": "0.05%",
                        "number_shares": "100,000",
                        "position_value": "2,470,000",
                        "ranking": "8",
                        "total_equity_ratio": "0.03%"
                    },
                    {
                        "circulation_ratio": "0.02%",
                        "fund_code": "163109",
                        "link": "购买",
                        "name_fund": "申万菱信深证成指分级",
                        "net_worth_ratio": "0.08%",
                        "number_shares": "68,821",
                        "position_value": "1,699,878",
                        "ranking": "9",
                        "total_equity_ratio": "0.02%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "165524",
                        "link": "购买",
                        "name_fund": "信诚中证智能家居指数分级",
                        "net_worth_ratio": "0.77%",
                        "number_shares": "55,300",
                        "position_value": "1,365,910",
                        "ranking": "10",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "160127",
                        "link": "购买",
                        "name_fund": "南方新兴消费增长分级",
                        "net_worth_ratio": "0.33%",
                        "number_shares": "31,689",
                        "position_value": "782,718",
                        "ranking": "11",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "320018",
                        "link": "购买",
                        "name_fund": "诺安新动力混合",
                        "net_worth_ratio": "0.83%",
                        "number_shares": "25,200",
                        "position_value": "622,440",
                        "ranking": "12",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "159907",
                        "link": "购买",
                        "name_fund": "广发中小板300ETF",
                        "net_worth_ratio": "0.18%",
                        "number_shares": "23,900",
                        "position_value": "590,330",
                        "ranking": "13",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "159943",
                        "link": "购买",
                        "name_fund": "大成深证成份ETF",
                        "net_worth_ratio": "0.08%",
                        "number_shares": "23,500",
                        "position_value": "580,450",
                        "ranking": "14",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.01%",
                        "fund_code": "159903",
                        "link": "购买",
                        "name_fund": "南方深证成份ETF",
                        "net_worth_ratio": "0.08%",
                        "number_shares": "19,900",
                        "position_value": "491,530",
                        "ranking": "15",
                        "total_equity_ratio": "0.01%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "001550",
                        "link": "购买",
                        "name_fund": "天弘中证医药100A",
                        "net_worth_ratio": "0.81%",
                        "number_shares": "13,900",
                        "position_value": "343,330",
                        "ranking": "16",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "159918",
                        "link": "购买",
                        "name_fund": "嘉实中创400ETF",
                        "net_worth_ratio": "0.18%",
                        "number_shares": "12,288",
                        "position_value": "303,513",
                        "ranking": "17",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "512990",
                        "link": "购买",
                        "name_fund": "MSCI中国A股ETF",
                        "net_worth_ratio": "0.03%",
                        "number_shares": "7,500",
                        "position_value": "185,250",
                        "ranking": "18",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "162413",
                        "link": "购买",
                        "name_fund": "华宝兴业中证1000指数分级",
                        "net_worth_ratio": "0.10%",
                        "number_shares": "7,000",
                        "position_value": "172,900",
                        "ranking": "19",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "161612",
                        "link": "购买",
                        "name_fund": "融通深证成份指数",
                        "net_worth_ratio": "0.08%",
                        "number_shares": "6,302",
                        "position_value": "155,659",
                        "ranking": "20",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "162010",
                        "link": "购买",
                        "name_fund": "长城久兆中小板300指数分级",
                        "net_worth_ratio": "0.17%",
                        "number_shares": "2,522",
                        "position_value": "62,293",
                        "ranking": "21",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "001180",
                        "link": "购买",
                        "name_fund": "广发医药卫生联接A",
                        "net_worth_ratio": "0.01%",
                        "number_shares": "2,500",
                        "position_value": "61,750",
                        "ranking": "22",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "162510",
                        "link": "购买",
                        "name_fund": "国联安双力中小板综指(LOF)",
                        "net_worth_ratio": "0.13%",
                        "number_shares": "1,291",
                        "position_value": "31,887",
                        "ranking": "23",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "0.00%",
                        "fund_code": "070030",
                        "link": "购买",
                        "name_fund": "嘉实中创400ETF联接",
                        "net_worth_ratio": "0.01%",
                        "number_shares": "400",
                        "position_value": "9,880",
                        "ranking": "24",
                        "total_equity_ratio": "0.00%"
                    },
                    {
                        "circulation_ratio": "",
                        "fund_code": "点击查看更多数据>>",
                        "link": "",
                        "name_fund": "",
                        "net_worth_ratio": "",
                        "number_shares": "",
                        "position_value": "",
                        "ranking": "",
                        "total_equity_ratio": ""
                    }
                ]
            },
            {
                "fund_info": [
                    {
                        "circulation_ratio": "0.73%",
                        "fund_code": "001056",
                        "link": "购买",
                        "name_fund": "北信瑞丰健康生活主题灵活配置",
                        "net_worth_ratio": "4.22%",
                        "number_shares": "2,701,432",
                        "position_value": "35,577,859",
                        "ranking": "1",
                        "total_equity_ratio": "0.73%"
                    },
                    {
                        "circulation_ratio": "0.54%",
                        "fund_code": "288001",
                        "link": "购买",
                        "name_fund": "华夏经典混合",
                        "net_worth_ratio": "1.88%",
                        "number_shares": "1,999,959",
                        "position_value": "26,339,460",
                        "ranking": "2",
                        "total_equity_ratio": "0.54%"
                    },
                    {
                        "circulation_ratio": "0.39%",
                        "fund_code": "160219",
                        "link": "购买",
                        "name_fund": "国泰国证医药卫生行业指数分级",
                        "net_worth_ratio": "0.30%",
                        "number_shares": "1,465,665",
                        "position_value": "19,302,808",
                        "ranking": "3",
                        "total_equity_ratio": "0.39%"
                    },
                    {
                        "circulation_ratio": "",
                        "fund_code": "点击查看更多数据>>",
                        "link": "",
                        "name_fund": "",
                        "net_worth_ratio": "",
                        "number_shares": "",
                        "position_value": "",
                        "ranking": "",
                        "total_equity_ratio": ""
                    }
                ]
            }
        ],
        "fund_table_year": [
            {
                "year_quarter": "2016-09-30"
            },
            {
                "year_quarter": "2016-06-30"
            },
            {
                "year_quarter": "2016-03-31"
            },
            {
                "year_quarter": "2015-12-31"
            },
            {
                "year_quarter": "2015-09-30"
            }
        ],
        "restricted_ban": [
            {
                "ban_number": "",
                "equity_ratio_shares_circulation": "",
                "lifted_shares_total_ratio": "",
                "release_time": "",
                "stock_type": ""
            },
            {
                "ban_number": "6081万",
                "equity_ratio_shares_circulation": "16.35%",
                "lifted_shares_total_ratio": "14.05%",
                "release_time": "2017-06-27",
                "stock_type": "定向增发机构配售股份"
            }
        ],
        "shareholder_number_table": "<table id=\"Table0\"><tbody>\n<tr>\n<th class=\"tips-colnameL\"></th>\n<th class=\"tips-dataL\">16-09-30</th>\n<th class=\"tips-dataL\">16-06-30</th>\n<th class=\"tips-dataL\">16-03-31</th>\n<th class=\"tips-dataL\">15-12-31</th>\n<th class=\"tips-dataL\">15-11-30</th>\n<th class=\"tips-dataL\">15-10-31</th>\n<th class=\"tips-dataL\">15-09-30</th>\n<th class=\"tips-dataL\">15-08-31</th>\n<th class=\"tips-dataL\">15-07-31</th>\n<th class=\"tips-dataL\">15-06-30</th>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">股东人数(户)</th>\n<td class=\"tips-dataL\">6.73万</td>\n<td class=\"tips-dataL\">7.12万</td>\n<td class=\"tips-dataL\">7.16万</td>\n<td class=\"tips-dataL\">7.79万</td>\n<td class=\"tips-dataL\">8.20万</td>\n<td class=\"tips-dataL\">7.50万</td>\n<td class=\"tips-dataL\">5.18万</td>\n<td class=\"tips-dataL\">5.10万</td>\n<td class=\"tips-dataL\">4.76万</td>\n<td class=\"tips-dataL\">4.14万</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">较上期变化(%)</th>\n<td class=\"tips-dataL\">-5.47</td>\n<td class=\"tips-dataL\">-0.49</td>\n<td class=\"tips-dataL\">-8.05</td>\n<td class=\"tips-dataL\">-5.04</td>\n<td class=\"tips-dataL\">9.31</td>\n<td class=\"tips-dataL\">44.87</td>\n<td class=\"tips-dataL\">1.51</td>\n<td class=\"tips-dataL\">7.14</td>\n<td class=\"tips-dataL\">15.03</td>\n<td class=\"tips-dataL\">22.79</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">人均流通股(股)</th>\n<td class=\"tips-dataL\">5524</td>\n<td class=\"tips-dataL\">5222</td>\n<td class=\"tips-dataL\">5186</td>\n<td class=\"tips-dataL\">4769</td>\n<td class=\"tips-dataL\">4538</td>\n<td class=\"tips-dataL\">4960</td>\n<td class=\"tips-dataL\">7186</td>\n<td class=\"tips-dataL\">7294</td>\n<td class=\"tips-dataL\">7815</td>\n<td class=\"tips-dataL\">8990</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">较上期变化(%)</th>\n<td class=\"tips-dataL\">5.79</td>\n<td class=\"tips-dataL\">0.69</td>\n<td class=\"tips-dataL\">8.75</td>\n<td class=\"tips-dataL\">5.09</td>\n<td class=\"tips-dataL\">-8.52</td>\n<td class=\"tips-dataL\">-30.97</td>\n<td class=\"tips-dataL\">-1.49</td>\n<td class=\"tips-dataL\">-6.67</td>\n<td class=\"tips-dataL\">-13.07</td>\n<td class=\"tips-dataL\">-18.56</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">筹码集中度</th>\n<td class=\"tips-dataL\">非常集中</td>\n<td class=\"tips-dataL\">非常集中</td>\n<td class=\"tips-dataL\">非常集中</td>\n<td class=\"tips-dataL\">较集中</td>\n<td class=\"tips-dataL\">较集中</td>\n<td class=\"tips-dataL\">较集中</td>\n<td class=\"tips-dataL\">非常集中</td>\n<td class=\"tips-dataL\">非常集中</td>\n<td class=\"tips-dataL\">非常集中</td>\n<td class=\"tips-dataL\">非常集中</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">股价(元)</th>\n<td class=\"tips-dataL\">17.18</td>\n<td class=\"tips-dataL\">18.14</td>\n<td class=\"tips-dataL\">18.59</td>\n<td class=\"tips-dataL\">24.70</td>\n<td class=\"tips-dataL\">29.05</td>\n<td class=\"tips-dataL\">29.01</td>\n<td class=\"tips-dataL\">13.17</td>\n<td class=\"tips-dataL\">15.40</td>\n<td class=\"tips-dataL\">21.60</td>\n<td class=\"tips-dataL\">28.00</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">人均持股金额(元)</th>\n<td class=\"tips-dataL\">9.49万</td>\n<td class=\"tips-dataL\">9.47万</td>\n<td class=\"tips-dataL\">9.64万</td>\n<td class=\"tips-dataL\">11.8万</td>\n<td class=\"tips-dataL\">13.2万</td>\n<td class=\"tips-dataL\">14.4万</td>\n<td class=\"tips-dataL\">9.46万</td>\n<td class=\"tips-dataL\">11.2万</td>\n<td class=\"tips-dataL\">16.9万</td>\n<td class=\"tips-dataL\">25.2万</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">前十大股东持股合计(%)</th>\n<td class=\"tips-dataL\">49.78</td>\n<td class=\"tips-dataL\">50.96</td>\n<td class=\"tips-dataL\">50.20</td>\n<td class=\"tips-dataL\">50.92</td>\n<td class=\"tips-dataL\">52.54</td>\n<td class=\"tips-dataL\">52.54</td>\n<td class=\"tips-dataL\">52.54</td>\n<td class=\"tips-dataL\">55.28</td>\n<td class=\"tips-dataL\">55.28</td>\n<td class=\"tips-dataL\">55.28</td>\n</tr>\n<tr>\n<th class=\"tips-fieldnameL\">前十大流通股东持股合计(%)</th>\n<td class=\"tips-dataL\">42.73</td>\n<td class=\"tips-dataL\">43.19</td>\n<td class=\"tips-dataL\">50.20</td>\n<td class=\"tips-dataL\">50.72</td>\n<td class=\"tips-dataL\">52.54</td>\n<td class=\"tips-dataL\">52.54</td>\n<td class=\"tips-dataL\">52.54</td>\n<td class=\"tips-dataL\">55.28</td>\n<td class=\"tips-dataL\">55.28</td>\n<td class=\"tips-dataL\">55.28</td>\n</tr>\n</tbody></table>\n            \n",
        "ten_outstanding_shares_info": [
            {
                "shareholders": [
                    {
                        "changes_proportion": "-3.00%",
                        "increase_decrease_shares": "-4,994,600",
                        "nature_shareholders": "投资公司",
                        "number_shares": "161,338,702",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "A股",
                        "total_stake_distribution": "43.37%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "A股",
                        "total_stake_distribution": "3.57%"
                    },
                    {
                        "changes_proportion": "6.48%",
                        "increase_decrease_shares": "100,350",
                        "nature_shareholders": "个人",
                        "number_shares": "1,648,300",
                        "ranking": "3",
                        "shareholder_name": "叶新林",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.44%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "1,538,900",
                        "ranking": "4",
                        "shareholder_name": "申小玲",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.41%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "基金资产管理计划",
                        "number_shares": "1,533,601",
                        "ranking": "5",
                        "shareholder_name": "中铁宝盈资产-广发银行-中铁宝盈-夺宝1号资产管理计划",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.41%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,514,838",
                        "ranking": "6",
                        "shareholder_name": "中国农业银行股份有限公司-华安智能装备主题股票型证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.41%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "信托计划",
                        "number_shares": "1,206,530",
                        "ranking": "7",
                        "shareholder_name": "平安信托有限责任公司-平安财富*聚金8号证券投资集合资金信托计划",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.32%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "1,083,800",
                        "ranking": "8",
                        "shareholder_name": "陈荷跃",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.29%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "信托计划",
                        "number_shares": "971,500",
                        "ranking": "9",
                        "shareholder_name": "云南国际信托有限公司-源盛恒瑞15号集合资金信托计划",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.26%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "842,800",
                        "ranking": "10",
                        "shareholder_name": "中央汇金资产管理有限责任公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "nature_shareholders": "--",
                        "number_shares": "184,943,405",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_stake_distribution": "49.72%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "投资公司",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "A股",
                        "total_stake_distribution": "44.71%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "A股",
                        "total_stake_distribution": "3.57%"
                    },
                    {
                        "changes_proportion": "-1.09%",
                        "increase_decrease_shares": "-19,400",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,753,966",
                        "ranking": "3",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.47%"
                    },
                    {
                        "changes_proportion": "30.24%",
                        "increase_decrease_shares": "359,421",
                        "nature_shareholders": "个人",
                        "number_shares": "1,547,950",
                        "ranking": "4",
                        "shareholder_name": "叶新林",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.42%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "其它",
                        "number_shares": "950,000",
                        "ranking": "5",
                        "shareholder_name": "太原狮头集团有限公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.26%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "842,800",
                        "ranking": "6",
                        "shareholder_name": "中央汇金资产管理有限责任公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.23%"
                    },
                    {
                        "changes_proportion": "-4.00%",
                        "increase_decrease_shares": "-25,700",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "616,788",
                        "ranking": "7",
                        "shareholder_name": "中国银行股份有限公司-华宝兴业中证医疗指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.17%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "571,073",
                        "ranking": "8",
                        "shareholder_name": "周勇明",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.15%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "QFII",
                        "number_shares": "527,100",
                        "ranking": "9",
                        "shareholder_name": "新韩法国巴黎资产运用株式会社-新韩法巴中国内地中小市值RQFII股票集成投资信托基金(股票)(交易所)",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.14%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "520,600",
                        "ranking": "10",
                        "shareholder_name": "丁前进",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.14%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "nature_shareholders": "--",
                        "number_shares": "186,928,013",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_stake_distribution": "50.25%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "0.45%",
                        "increase_decrease_shares": "744,600",
                        "nature_shareholders": "投资公司",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "A股",
                        "total_stake_distribution": "44.80%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "A股",
                        "total_stake_distribution": "3.57%"
                    },
                    {
                        "changes_proportion": "3.63%",
                        "increase_decrease_shares": "62,081",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,773,366",
                        "ranking": "3",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.48%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "1,188,529",
                        "ranking": "4",
                        "shareholder_name": "叶新林",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.32%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "信托计划",
                        "number_shares": "850,000",
                        "ranking": "5",
                        "shareholder_name": "陕西省国际信托股份有限公司-陕国投·海中湾(齐鲁)3号证券投资集合资金信托计划",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "842,800",
                        "ranking": "6",
                        "shareholder_name": "中央汇金资产管理有限责任公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "729,600",
                        "ranking": "7",
                        "shareholder_name": "邵志坚",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.20%"
                    },
                    {
                        "changes_proportion": "-38.55%",
                        "increase_decrease_shares": "-403,000",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "642,488",
                        "ranking": "8",
                        "shareholder_name": "中国银行股份有限公司-华宝兴业中证医疗指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.17%"
                    },
                    {
                        "changes_proportion": "4.33%",
                        "increase_decrease_shares": "25,300",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "609,176",
                        "ranking": "9",
                        "shareholder_name": "兴业银行股份有限公司-广发中证百度百发策略100指数型证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.16%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "500,059",
                        "ranking": "10",
                        "shareholder_name": "车卫真",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.13%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "nature_shareholders": "--",
                        "number_shares": "186,733,754",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_stake_distribution": "50.30%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "-0.45%",
                        "increase_decrease_shares": "-744,600",
                        "nature_shareholders": "投资公司",
                        "number_shares": "165,588,702",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "A股",
                        "total_stake_distribution": "44.60%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "A股",
                        "total_stake_distribution": "3.57%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "2,814,198",
                        "ranking": "3",
                        "shareholder_name": "俞慧芳",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.76%"
                    },
                    {
                        "changes_proportion": "16.76%",
                        "increase_decrease_shares": "245,620",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,711,285",
                        "ranking": "4",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.46%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "1,515,915",
                        "ranking": "5",
                        "shareholder_name": "莫建军",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.41%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,045,488",
                        "ranking": "6",
                        "shareholder_name": "中国银行股份有限公司-华宝兴业中证医疗指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.28%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "其它",
                        "number_shares": "842,800",
                        "ranking": "7",
                        "shareholder_name": "中央汇金资产管理有限责任公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.23%"
                    },
                    {
                        "changes_proportion": "0.14%",
                        "increase_decrease_shares": "1,100",
                        "nature_shareholders": "个人",
                        "number_shares": "793,700",
                        "ranking": "8",
                        "shareholder_name": "周朝辉",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.21%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "583,876",
                        "ranking": "9",
                        "shareholder_name": "兴业银行股份有限公司-广发中证百度百发策略100指数型证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.16%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "518,560",
                        "ranking": "10",
                        "shareholder_name": "徐晓辉",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.14%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "nature_shareholders": "--",
                        "number_shares": "188,678,958",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_stake_distribution": "50.82%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "0.45%",
                        "increase_decrease_shares": "744,600",
                        "nature_shareholders": "投资公司",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "A股",
                        "total_stake_distribution": "44.71%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "nature_shareholders": "其它",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "A股",
                        "total_stake_distribution": "3.57%"
                    },
                    {
                        "changes_proportion": "6.65%",
                        "increase_decrease_shares": "300,000",
                        "nature_shareholders": "保险产品",
                        "number_shares": "4,809,929",
                        "ranking": "3",
                        "shareholder_name": "天安财产保险股份有限公司-保赢1号",
                        "shares_type": "A股",
                        "total_stake_distribution": "1.29%"
                    },
                    {
                        "changes_proportion": "17.23%",
                        "increase_decrease_shares": "397,015",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "2,701,432",
                        "ranking": "4",
                        "shareholder_name": "中国工商银行股份有限公司-北信瑞丰健康生活主题灵活配置混合型证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.73%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,999,959",
                        "ranking": "5",
                        "shareholder_name": "招商银行股份有限公司-华夏经典配置混合型证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.54%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "投资公司",
                        "number_shares": "1,687,000",
                        "ranking": "6",
                        "shareholder_name": "湖南富兴投资发展有限公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.45%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "1,558,077",
                        "ranking": "7",
                        "shareholder_name": "纪正祥",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.42%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "证券投资基金",
                        "number_shares": "1,465,665",
                        "ranking": "8",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.39%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "投资公司",
                        "number_shares": "842,800",
                        "ranking": "9",
                        "shareholder_name": "中央汇金投资有限责任公司",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "nature_shareholders": "个人",
                        "number_shares": "792,600",
                        "ranking": "10",
                        "shareholder_name": "周朝辉",
                        "shares_type": "A股",
                        "total_stake_distribution": "0.21%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "nature_shareholders": "--",
                        "number_shares": "195,455,198",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_stake_distribution": "52.54%"
                    }
                ]
            }
        ],
        "ten_outstanding_shares_year": [
            {
                "year_quarter": "2016-09-30"
            },
            {
                "year_quarter": "2016-06-30"
            },
            {
                "year_quarter": "2016-03-31"
            },
            {
                "year_quarter": "2015-12-31"
            },
            {
                "year_quarter": "2015-09-30"
            }
        ],
        "top10_shareholders_change": [
            {
                "change_reason": "临时公告",
                "change_time": "2016-09-12",
                "increase_decrease_shares": "-744,600",
                "increase_decrease_shares_ratio": "-0.46%",
                "number_shares": "161,338,700",
                "ranking": "--",
                "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                "shares_type": "流通A股",
                "total_equity_stake": "37.28%"
            },
            {
                "change_reason": "临时公告",
                "change_time": "2016-09-09",
                "increase_decrease_shares": "-4,250,002",
                "increase_decrease_shares_ratio": "-2.56%",
                "number_shares": "162,083,300",
                "ranking": "--",
                "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                "shares_type": "流通A股",
                "total_equity_stake": "37.45%"
            }
        ],
        "top10_shareholders_info": [
            {
                "shareholders": [
                    {
                        "changes_proportion": "-3.00%",
                        "increase_decrease_shares": "-4,994,600",
                        "number_shares": "161,338,702",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "流通A股",
                        "total_equity_stake": "37.28%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "18,256,578",
                        "ranking": "2",
                        "shareholder_name": "招商财富-招商银行-晟融1号专项资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "4.22%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "13,264,434",
                        "ranking": "3",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "流通A股",
                        "total_equity_stake": "3.06%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "6,578,950",
                        "ranking": "4",
                        "shareholder_name": "中国工商银行股份有限公司-财通多策略升级混合型证券投资基金",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "1.52%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "6,578,947",
                        "ranking": "5",
                        "shareholder_name": "第一创业证券-国信证券-共盈大岩量化定增集合资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "1.52%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "2,631,579",
                        "ranking": "6",
                        "shareholder_name": "财通基金-工商银行-国海证券股份有限公司",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.61%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "1,973,684",
                        "ranking": "7",
                        "shareholder_name": "财通基金-平安银行-中信建投证券股份有限公司",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.46%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,648,300",
                        "ranking": "8",
                        "shareholder_name": "叶新林",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.38%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "1,587,882",
                        "ranking": "9",
                        "shareholder_name": "诺安基金-建设银行-利安人寿-诺安定享7号资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.37%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "1,587,882",
                        "ranking": "9",
                        "shareholder_name": "诺安基金-工商银行-诺安定增稳利6号资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.37%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "number_shares": "215,446,938",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_equity_stake": "49.79%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "流通A股",
                        "total_equity_stake": "38.43%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "18,256,578",
                        "ranking": "2",
                        "shareholder_name": "招商财富-招商银行-晟融1号专项资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "4.22%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "13,264,434",
                        "ranking": "3",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "流通A股",
                        "total_equity_stake": "3.06%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "6,578,950",
                        "ranking": "4",
                        "shareholder_name": "中国工商银行股份有限公司-财通多策略升级混合型证券投资基金",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "1.52%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "6,578,947",
                        "ranking": "5",
                        "shareholder_name": "第一创业证券-国信证券-共盈大岩量化定增集合资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "1.52%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "2,631,579",
                        "ranking": "6",
                        "shareholder_name": "财通基金-工商银行-国海证券股份有限公司",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.61%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,973,684",
                        "ranking": "7",
                        "shareholder_name": "财通基金-平安银行-中信建投证券股份有限公司",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.46%"
                    },
                    {
                        "changes_proportion": "-1.09%",
                        "increase_decrease_shares": "-19,400",
                        "number_shares": "1,753,966",
                        "ranking": "8",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.41%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,587,882",
                        "ranking": "9",
                        "shareholder_name": "诺安基金-建设银行-利安人寿-诺安定享7号资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.37%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,587,882",
                        "ranking": "9",
                        "shareholder_name": "诺安基金-工商银行-诺安定增稳利6号资产管理计划",
                        "shares_type": "限售流通A股",
                        "total_equity_stake": "0.37%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "number_shares": "220,547,204",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_equity_stake": "50.97%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "流通A股",
                        "total_equity_stake": "44.71%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "流通A股",
                        "total_equity_stake": "3.57%"
                    },
                    {
                        "changes_proportion": "3.63%",
                        "increase_decrease_shares": "62,081",
                        "number_shares": "1,773,366",
                        "ranking": "3",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.48%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,188,529",
                        "ranking": "4",
                        "shareholder_name": "叶新林",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.32%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "850,000",
                        "ranking": "5",
                        "shareholder_name": "陕西省国际信托股份有限公司-陕国投·海中湾(齐鲁)3号证券投资集合资金信托计划",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "842,800",
                        "ranking": "6",
                        "shareholder_name": "中央汇金资产管理有限责任公司",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "729,600",
                        "ranking": "7",
                        "shareholder_name": "邵志坚",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.20%"
                    },
                    {
                        "changes_proportion": "-38.55%",
                        "increase_decrease_shares": "-403,000",
                        "number_shares": "642,488",
                        "ranking": "8",
                        "shareholder_name": "中国银行股份有限公司-华宝兴业中证医疗指数分级证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.17%"
                    },
                    {
                        "changes_proportion": "4.33%",
                        "increase_decrease_shares": "25,300",
                        "number_shares": "609,176",
                        "ranking": "9",
                        "shareholder_name": "兴业银行股份有限公司-广发中证百度百发策略100指数型证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.16%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "500,059",
                        "ranking": "10",
                        "shareholder_name": "车卫真",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.13%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "number_shares": "186,733,754",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_equity_stake": "50.20%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "流通A股,限售流通A股",
                        "total_equity_stake": "44.71%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "流通A股",
                        "total_equity_stake": "3.57%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "2,814,198",
                        "ranking": "3",
                        "shareholder_name": "俞慧芳",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.76%"
                    },
                    {
                        "changes_proportion": "16.76%",
                        "increase_decrease_shares": "245,620",
                        "number_shares": "1,711,285",
                        "ranking": "4",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.46%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,515,915",
                        "ranking": "5",
                        "shareholder_name": "莫建军",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.41%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,045,488",
                        "ranking": "6",
                        "shareholder_name": "中国银行股份有限公司-华宝兴业中证医疗指数分级证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.28%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "842,800",
                        "ranking": "7",
                        "shareholder_name": "中央汇金资产管理有限责任公司",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.23%"
                    },
                    {
                        "changes_proportion": "0.14%",
                        "increase_decrease_shares": "1,100",
                        "number_shares": "793,700",
                        "ranking": "8",
                        "shareholder_name": "周朝辉",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.21%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "583,876",
                        "ranking": "9",
                        "shareholder_name": "兴业银行股份有限公司-广发中证百度百发策略100指数型证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.16%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "518,560",
                        "ranking": "10",
                        "shareholder_name": "徐晓辉",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.14%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "number_shares": "189,423,558",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_equity_stake": "50.93%"
                    }
                ]
            },
            {
                "shareholders": [
                    {
                        "changes_proportion": "0.45%",
                        "increase_decrease_shares": "744,600",
                        "number_shares": "166,333,302",
                        "ranking": "1",
                        "shareholder_name": "石河子三和股权投资合伙企业(有限合伙)",
                        "shares_type": "流通A股",
                        "total_equity_stake": "44.71%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "不变",
                        "number_shares": "13,264,434",
                        "ranking": "2",
                        "shareholder_name": "HEDDINGTON LTD.",
                        "shares_type": "流通A股",
                        "total_equity_stake": "3.57%"
                    },
                    {
                        "changes_proportion": "6.65%",
                        "increase_decrease_shares": "300,000",
                        "number_shares": "4,809,929",
                        "ranking": "3",
                        "shareholder_name": "天安财产保险股份有限公司-保赢1号",
                        "shares_type": "流通A股",
                        "total_equity_stake": "1.29%"
                    },
                    {
                        "changes_proportion": "17.23%",
                        "increase_decrease_shares": "397,015",
                        "number_shares": "2,701,432",
                        "ranking": "4",
                        "shareholder_name": "中国工商银行股份有限公司-北信瑞丰健康生活主题灵活配置混合型证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.73%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,999,959",
                        "ranking": "5",
                        "shareholder_name": "招商银行股份有限公司-华夏经典配置混合型证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.54%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,687,000",
                        "ranking": "6",
                        "shareholder_name": "湖南富兴投资发展有限公司",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.45%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,558,077",
                        "ranking": "7",
                        "shareholder_name": "纪正祥",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.42%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "1,465,665",
                        "ranking": "8",
                        "shareholder_name": "中国农业银行股份有限公司-国泰国证医药卫生行业指数分级证券投资基金",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.39%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "842,800",
                        "ranking": "9",
                        "shareholder_name": "中央汇金投资有限责任公司",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.23%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "新进",
                        "number_shares": "792,600",
                        "ranking": "10",
                        "shareholder_name": "周朝辉",
                        "shares_type": "流通A股",
                        "total_equity_stake": "0.21%"
                    },
                    {
                        "changes_proportion": "--",
                        "increase_decrease_shares": "--",
                        "number_shares": "195,455,198",
                        "ranking": "",
                        "shareholder_name": "合计",
                        "shares_type": "--",
                        "total_equity_stake": "52.54%"
                    }
                ]
            }
        ],
        "top10_shareholders_year": [
            {
                "year_quarter": "2016-09-30"
            },
            {
                "year_quarter": "2016-06-30"
            },
            {
                "year_quarter": "2016-03-31"
            },
            {
                "year_quarter": "2015-12-31"
            },
            {
                "year_quarter": "2015-09-30"
            }
        ]
    }

    data = json.dumps(extract_data)

    src_url = 'http://gsxt.saic.gov.cn/'
    site = src_url.split('//')[-1].split('/')[0]
    site_id = get_md5_i64("gsxt.saic.gov.cn")
    base_info = BaseInfo(url=src_url, site_id=site_id, site=site)
    extract_info = ExtractInfo(ex_status=2, extract_data=data, topic_id=123)
    tube = "extract_info"
    send_msg(base_info, extract_info, tube)


    print "finish sumnum:"


import ctypes


def get_md5_i64(obj):
    m = hashlib.md5()
    m.update(obj)
    return ctypes.c_int64(int(m.hexdigest()[8:-8], 16)).value


def send_msg(base_info, extract_info, tube):
    '''往消息队列中发送消息'''
    crawl_info = CrawlInfo()

    pybeanstalk = PyBeanstalk('101.201.102.37')

    req = PageParseInfo(base_info=base_info, crawl_info=crawl_info, extract_info=extract_info, scheduler="a",
                        parse_extends="b", data_extends="c")
    tMemory_b = TMemoryBuffer()
    tBinaryProtocol_b = TBinaryProtocol(tMemory_b)
    req.write(tBinaryProtocol_b)
    body = tMemory_b.getvalue()
    try:
        pybeanstalk.put(tube, body)
        # print "send beanstalk msg success"
    except:
        print traceback.format_exc()


if __name__ == "__main__":
    print "start"
    main()
